package dbutil;

import java.sql.*;

public class Dbconn {
    private Connection conn;
    public Connection getConnection(){
        try{
            Class.forName("com.mysql.jdbc.Driver");
            conn= DriverManager.getConnection("jdbc:mysql://localhost:3306/school","root","root");

        } catch (Exception e) {
            e.printStackTrace();
        }
        return conn;



    }
}
